"""
accum('abcd') -> 'A-Bc-Cccc-Dddd'
"""
def accum(s):
    lista = [i.upper() for i in s]
    for i in range(len(lista)):
        lista[i] = lista[i] + lista[i].lower()*i
    return '-'.join(lista)

def accum1(s):
    return '-'.join(c.upper() + c.lower() * i for i, c in enumerate(s))
